







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Replaces each item in a part of a array with a given value.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static void FillRange<T>( T[] array, int start, int count, T value ) |
Visual Basic (Declaration) |
---|
Public Shared Sub FillRange(Of T) ( _ array As T(), _ start As Integer, _ count As Integer, _ value As T _ ) |
Visual C++ |
---|
public: generic<typename T> static void FillRange ( array<T>^ array, int start, int count, T value ) |
Parameters
- array
- array<T>[]()
The array to modify.
- start
- Int32
The index at which to start filling. The first index in the array has index 0.
- count
- Int32
The number of items to fill.
- value
- T
The value to fill with.
Type Parameters
- T
Exceptions
Exception | Condition |
---|---|
System..::ArgumentOutOfRangeException | start or count is negative, or start + count is greater than array.Length. |
System..::ArgumentNullException | array is null. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace